﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class cmd_ShipTo : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("cmd_ShipTo", "ID");

        //流程名
        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("cmd_ShipTo", "Process");

        //实例号
        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("cmd_ShipTo", "Incident");

        //用户名
        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo user = new FieldInfo("cmd_ShipTo", "UserName");

        //用户全名
        [Column]
        public string UserFullName { get { return _UserFullName; } set { _UserFullName = value; EntityState.FieldChange("UserFullName"); } }
        private string _UserFullName;
        public static FieldInfo userfullname = new FieldInfo("cmd_ShipTo", "UserFullName");

        [Column]
        public string Sheets { get { return _Sheets; } set { _Sheets = value; EntityState.FieldChange("Sheets"); } } private string _Sheets; public static FieldInfo sheets = new FieldInfo("cmd_ShipTo", "Sheets");

        [Column]
        public string ST_Sold_To_No { get { return _ST_Sold_To_No; } set { _ST_Sold_To_No = value; EntityState.FieldChange("ST_Sold_To_No"); } } private string _ST_Sold_To_No; public static FieldInfo st_Sold_To_No = new FieldInfo("cmd_ShipTo", "ST_Sold_To_No");


        [Column]
        public string ST_Hierarchy_2 { get { return _ST_Hierarchy_2; } set { _ST_Hierarchy_2 = value; EntityState.FieldChange("ST_Hierarchy_2"); } } private string _ST_Hierarchy_2; public static FieldInfo sT_Hierarchy_2 = new FieldInfo("cmd_ShipTo", "ST_Hierarchy_2");
        [Column]
        public string ST_Total_ST { get { return _ST_Total_ST; } set { _ST_Total_ST = value; EntityState.FieldChange("ST_Total_ST"); } } private string _ST_Total_ST; public static FieldInfo st_Total_ST = new FieldInfo("cmd_ShipTo", "ST_Total_ST");


        [Column]
        public string ST_Sold_To_Name { get { return _ST_Sold_To_Name; } set { _ST_Sold_To_Name = value; EntityState.FieldChange("ST_Sold_To_Name"); } } private string _ST_Sold_To_Name; public static FieldInfo st_Sold_To_Name = new FieldInfo("cmd_ShipTo", "ST_Sold_To_Name");
        [Column]
        public string ST_DEL_ST_Address { get { return _ST_DEL_ST_Address; } set { _ST_DEL_ST_Address = value; EntityState.FieldChange("ST_DEL_ST_Address"); } } private string _ST_DEL_ST_Address; public static FieldInfo st_DEL_ST_Address = new FieldInfo("cmd_ShipTo", "ST_DEL_ST_Address");


        [Column]
        public string ST_Sold_To_Name_2 { get { return _ST_Sold_To_Name_2; } set { _ST_Sold_To_Name_2 = value; EntityState.FieldChange("ST_Sold_To_Name_2"); } } private string _ST_Sold_To_Name_2; public static FieldInfo st_Sold_To_Name_2 = new FieldInfo("cmd_ShipTo", "ST_Sold_To_Name_2");
        [Column]
        public string ST_Division { get { return _ST_Division; } set { _ST_Division = value; EntityState.FieldChange("ST_Division"); } } private string _ST_Division; public static FieldInfo st_Division = new FieldInfo("cmd_ShipTo", "ST_Division");

        [Column]
        public string ST_Sales_Group { get { return _ST_Sales_Group; } set { _ST_Sales_Group = value; EntityState.FieldChange("ST_Sales_Group"); } } private string _ST_Sales_Group; public static FieldInfo sT_Sales_Group = new FieldInfo("cmd_ShipTo", "ST_Sales_Group");


        [Column]
        public string ST_Ship_To_No { get { return _ST_Ship_To_No; } set { _ST_Ship_To_No = value; EntityState.FieldChange("ST_Ship_To_No"); } } private string _ST_Ship_To_No; public static FieldInfo st_Ship_To_No = new FieldInfo("cmd_ShipTo", "ST_Ship_To_No");
        [Column]
        public string ST_Project_Term { get { return _ST_Project_Term; } set { _ST_Project_Term = value; EntityState.FieldChange("ST_Project_Term"); } } private string _ST_Project_Term; public static FieldInfo st_Project_Term = new FieldInfo("cmd_ShipTo", "ST_Project_Term");
        [Column]
        public string ST_Ship_To_Name { get { return _ST_Ship_To_Name; } set { _ST_Ship_To_Name = value; EntityState.FieldChange("ST_Ship_To_Name"); } } private string _ST_Ship_To_Name; public static FieldInfo st_Ship_To_Name = new FieldInfo("cmd_ShipTo", "ST_Ship_To_Name");
        [Column]
        public string ST_Street5 { get { return _ST_Street5; } set { _ST_Street5 = value; EntityState.FieldChange("ST_Street5"); } } private string _ST_Street5; public static FieldInfo st_Street5 = new FieldInfo("cmd_ShipTo", "ST_Street5");
        [Column]
        public string ST_City { get { return _ST_City; } set { _ST_City = value; EntityState.FieldChange("ST_City"); } } private string _ST_City; public static FieldInfo st_City = new FieldInfo("cmd_ShipTo", "ST_City");
        [Column]
        public string ST_District { get { return _ST_District; } set { _ST_District = value; EntityState.FieldChange("ST_District"); } } private string _ST_District; public static FieldInfo st_District = new FieldInfo("cmd_ShipTo", "ST_District");
        [Column]
        public string ST_Street4 { get { return _ST_Street4; } set { _ST_Street4 = value; EntityState.FieldChange("ST_Street4"); } } private string _ST_Street4; public static FieldInfo st_Street4 = new FieldInfo("cmd_ShipTo", "ST_Street4");
        [Column]
        public string ST_Post_Code { get { return _ST_Post_Code; } set { _ST_Post_Code = value; EntityState.FieldChange("ST_Post_Code"); } } private string _ST_Post_Code; public static FieldInfo st_Post_Code = new FieldInfo("cmd_ShipTo", "ST_Post_Code");
        [Column]
        public string ST_Street { get { return _ST_Street; } set { _ST_Street = value; EntityState.FieldChange("ST_Street"); } } private string _ST_Street; public static FieldInfo st_Street = new FieldInfo("cmd_ShipTo", "ST_Street");
        [Column]
        public string ST_Contact_Person { get { return _ST_Contact_Person; } set { _ST_Contact_Person = value; EntityState.FieldChange("ST_Contact_Person"); } } private string _ST_Contact_Person; public static FieldInfo st_Contact_Person = new FieldInfo("cmd_ShipTo", "ST_Contact_Person");
        [Column]
        public string ST_Tel { get { return _ST_Tel; } set { _ST_Tel = value; EntityState.FieldChange("ST_Tel"); } } private string _ST_Tel; public static FieldInfo st_Tel = new FieldInfo("cmd_ShipTo", "ST_Tel");
        [Column]
        public string ST_Sales_Office { get { return _ST_Sales_Office; } set { _ST_Sales_Office = value; EntityState.FieldChange("ST_Sales_Office"); } } private string _ST_Sales_Office; public static FieldInfo st_Sales_Office = new FieldInfo("cmd_ShipTo", "ST_Sales_Office");
        [Column]
        public string ST_Region { get { return _ST_Region; } set { _ST_Region = value; EntityState.FieldChange("ST_Region"); } } private string _ST_Region; public static FieldInfo st_Region = new FieldInfo("cmd_ShipTo", "ST_Region");
        [Column]
        public string ST_City_Code { get { return _ST_City_Code; } set { _ST_City_Code = value; EntityState.FieldChange("ST_City_Code"); } } private string _ST_City_Code; public static FieldInfo st_City_Code = new FieldInfo("cmd_ShipTo", "ST_City_Code");
        [Column]
        public string ST_County { get { return _ST_County; } set { _ST_County = value; EntityState.FieldChange("ST_County"); } } private string _ST_County; public static FieldInfo st_County = new FieldInfo("cmd_ShipTo", "ST_County");
        [Column]
        public string ST_Attributes3 { get { return _ST_Attributes3; } set { _ST_Attributes3 = value; EntityState.FieldChange("ST_Attributes3"); } } private string _ST_Attributes3; public static FieldInfo st_Attributes3 = new FieldInfo("cmd_ShipTo", "ST_Attributes3");
        [Column]
        public string ST_Attributes4 { get { return _ST_Attributes4; } set { _ST_Attributes4 = value; EntityState.FieldChange("ST_Attributes4"); } } private string _ST_Attributes4; public static FieldInfo st_Attributes4 = new FieldInfo("cmd_ShipTo", "ST_Attributes4");
        [Column]
        public string ST_Transportation_Zone { get { return _ST_Transportation_Zone; } set { _ST_Transportation_Zone = value; EntityState.FieldChange("ST_Transportation_Zone"); } } private string _ST_Transportation_Zone; public static FieldInfo st_Transportation_Zone = new FieldInfo("cmd_ShipTo", "ST_Transportation_Zone");
        [Column]
        public string ST_Switch_Off_Rounding { get { return _ST_Switch_Off_Rounding; } set { _ST_Switch_Off_Rounding = value; EntityState.FieldChange("ST_Switch_Off_Rounding"); } } private string _ST_Switch_Off_Rounding; public static FieldInfo st_Switch_Off_Rounding = new FieldInfo("cmd_ShipTo", "ST_Switch_Off_Rounding");
        [Column]
        public string ST_Relevant_For_POD { get { return _ST_Relevant_For_POD; } set { _ST_Relevant_For_POD = value; EntityState.FieldChange("ST_Relevant_For_POD"); } } private string _ST_Relevant_For_POD; public static FieldInfo st_Relevant_For_POD = new FieldInfo("cmd_ShipTo", "ST_Relevant_For_POD");
        [Column]
        public string ST_Delivery_Priority { get { return _ST_Delivery_Priority; } set { _ST_Delivery_Priority = value; EntityState.FieldChange("ST_Delivery_Priority"); } } private string _ST_Delivery_Priority; public static FieldInfo st_Delivery_Priority = new FieldInfo("cmd_ShipTo", "ST_Delivery_Priority");
        [Column]
        public string ST_Shipping_Condition { get { return _ST_Shipping_Condition; } set { _ST_Shipping_Condition = value; EntityState.FieldChange("ST_Shipping_Condition"); } } private string _ST_Shipping_Condition; public static FieldInfo st_Shipping_Condition = new FieldInfo("cmd_ShipTo", "ST_Shipping_Condition");
        [Column]
        public string ST_Rebate { get { return _ST_Rebate; } set { _ST_Rebate = value; EntityState.FieldChange("ST_Rebate"); } } private string _ST_Rebate; public static FieldInfo st_Rebate = new FieldInfo("cmd_ShipTo", "ST_Rebate");
        [Column]
        public string ST_Price_Determin { get { return _ST_Price_Determin; } set { _ST_Price_Determin = value; EntityState.FieldChange("ST_Price_Determin"); } } private string _ST_Price_Determin; public static FieldInfo st_Price_Determin = new FieldInfo("cmd_ShipTo", "ST_Price_Determin");
        [Column]
        public string ST_Acct_Assgmt_Group { get { return _ST_Acct_Assgmt_Group; } set { _ST_Acct_Assgmt_Group = value; EntityState.FieldChange("ST_Acct_Assgmt_Group"); } } private string _ST_Acct_Assgmt_Group; public static FieldInfo st_Acct_Assgmt_Group = new FieldInfo("cmd_ShipTo", "ST_Acct_Assgmt_Group");
        [Column]
        public string ST_Tax_Classification { get { return _ST_Tax_Classification; } set { _ST_Tax_Classification = value; EntityState.FieldChange("ST_Tax_Classification"); } } private string _ST_Tax_Classification; public static FieldInfo st_Tax_Classification = new FieldInfo("cmd_ShipTo", "ST_Tax_Classification");
        [Column]
        public string ST_Itcoterms { get { return _ST_Itcoterms; } set { _ST_Itcoterms = value; EntityState.FieldChange("ST_Itcoterms"); } } private string _ST_Itcoterms; public static FieldInfo st_Itcoterms = new FieldInfo("cmd_ShipTo", "ST_Itcoterms");
        [Column]
        public string ST_Terms_Of_Payment { get { return _ST_Terms_Of_Payment; } set { _ST_Terms_Of_Payment = value; EntityState.FieldChange("ST_Terms_Of_Payment"); } } private string _ST_Terms_Of_Payment; public static FieldInfo st_Terms_Of_Payment = new FieldInfo("cmd_ShipTo", "ST_Terms_Of_Payment");
        [Column]
        public string ST_Ship_To_Name2 { get { return _ST_Ship_To_Name2; } set { _ST_Ship_To_Name2 = value; EntityState.FieldChange("ST_Ship_To_Name2"); } } private string _ST_Ship_To_Name2; public static FieldInfo st_Ship_To_Name2 = new FieldInfo("cmd_ShipTo", "ST_Ship_To_Name2");
        [Column]
        public string ST_Partial_Delivery_Per_Item { get { return _ST_Partial_Delivery_Per_Item; } set { _ST_Partial_Delivery_Per_Item = value; EntityState.FieldChange("ST_Partial_Delivery_Per_Item"); } } private string _ST_Partial_Delivery_Per_Item; public static FieldInfo st_Partial_Delivery_Per_Item = new FieldInfo("cmd_ShipTo", "ST_Partial_Delivery_Per_Item");
        [Column]
        public string ST_Max_Partial_Deliveries { get { return _ST_Max_Partial_Deliveries; } set { _ST_Max_Partial_Deliveries = value; EntityState.FieldChange("ST_Max_Partial_Deliveries"); } }
        private string _ST_Max_Partial_Deliveries;
        public static FieldInfo st_Max_Partial_Deliveries = new FieldInfo("cmd_ShipTo", "ST_Max_Partial_Deliveries");
        [Column]
        public string ST_Ship_To_Mgr { get { return _ST_Ship_To_Mgr; } set { _ST_Ship_To_Mgr = value; EntityState.FieldChange("ST_Ship_To_Mgr"); } } private string _ST_Ship_To_Mgr; public static FieldInfo st_Ship_To_Mgr = new FieldInfo("cmd_ShipTo", "ST_Ship_To_Mgr");
        [Column]
        public string ST_SD_Sales_Office { get { return _ST_SD_Sales_Office; } set { _ST_SD_Sales_Office = value; EntityState.FieldChange("ST_SD_Sales_Office"); } }
        private string _ST_SD_Sales_Office;
        public static FieldInfo sT_SD_Sales_Office = new FieldInfo("cmd_ShipTo", "ST_SD_Sales_Office");

        [Column]
        public string ST_SD_Region { get { return _ST_SD_Region; } set { _ST_SD_Region = value; EntityState.FieldChange("ST_SD_Region"); } }
        private string _ST_SD_Region;
        public static FieldInfo sT_SD_Region = new FieldInfo("cmd_ShipTo", "ST_SD_Region");

        [Column]
        public string ST_SD_Division { get { return _ST_SD_Division; } set { _ST_SD_Division = value; EntityState.FieldChange("ST_SD_Division"); } }
        private string _ST_SD_Division;
        public static FieldInfo sT_SD_Division = new FieldInfo("cmd_ShipTo", "ST_SD_Division");


        [Column]
        public string ST_SD_County_Code { get { return _ST_SD_County_Code; } set { _ST_SD_County_Code = value; EntityState.FieldChange("ST_SD_County_Code"); } }
        private string _ST_SD_County_Code;
        public static FieldInfo sT_SD_County_Code = new FieldInfo("cmd_ShipTo", "ST_SD_County_Code");

        [Column]
        public string IsDivision_Null { get { return _IsDivision_Null; } set { _IsDivision_Null = value; EntityState.FieldChange("IsDivision_Null"); } }
        private string _IsDivision_Null;
        public static FieldInfo isDivision_Null = new FieldInfo("cmd_ShipTo", "IsDivision_Null");


        [Column]
        public string Is_PC { get { return _Is_PC; } set { _Is_PC = value; EntityState.FieldChange("Is_PC"); } }
        private string _Is_PC;
        public static FieldInfo is_PC = new FieldInfo("cmd_ShipTo", "Is_PC");

        //时间
        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("cmd_ShipTo", "Time");

        //状态
        [Column]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("cmd_ShipTo", "Status");


    
    }
}
